﻿
using PADWH35;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;


namespace PADWH3._5
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args = null)
        {
            //args = new string[] { "SafetyProductionBoard", "0" };
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            /*
            if (args[0] == "MoldChangingSchedule")
            {
                Application.Run(new MoldChangingScheduleDialog());
            }
            else if (args[0] == "BlowJobStatus")
            {
                Application.Run(new BlowJobStatusFunction());
            }
            else if (args[0] == "BlowJobStatus2")
            {
                Application.Run(new BlowJobStatusFunction2());
            }
            else if (args[0] == "BlowJobStatusDialog")
            {
                Application.Run(new BlowJobStatusDialog());
            }
            else if (args[0] == "ResinRefill")
            {
                Int16 intRun = 0;//运行哪个画面
                if (args.Length > 1)
                { intRun = Convert.ToInt16(args[1]); }
                Application.Run(new ResinRefillDialog(intRun));
            }
            */
            switch (args[0])
            {

                case "MoldChangingSchedule":
                    Application.Run(new MoldChangingScheduleDialog());
                    break;
                case "Form6":
                    Application.Run(new Form6());
                    break;
                case "MaintainRequestDialog":
                    Application.Run(new MaintainRequestDialog());
                    break;
                case "BlowJobStatus":
                    Application.Run(new BlowJobStatusFunction());
                    break;
                case "BlowJobStatus2":
                    Application.Run(new BlowJobStatusFunction2());
                    break;
                case "BlowJobStatusDialog":
                    Application.Run(new BlowJobStatusDialog());
                    break;
                case "WORWorkOrderPAD":
                    Application.Run(new WORWorkOrderPAD());
                    break;
                case "MaintainWORWorkOrderPAD":
                    Application.Run(new MaintainWORWorkOrderPAD());
                    break;
                case "BlowJobStatusFunction2":
                    Application.Run(new BlowJobStatusFunction2());
                    break;
                case "SafetyProductionBoard":
                    Application.Run(new SafetyProductionBoard());
                    break;
                case "SetSafetyProductionBoard":
                    Application.Run(new SetSafetyProductionBoard());
                    break;
                case "MaterialRequisition":
                    Application.Run(new MaterialRequisition());
                    break;
                case "ResinRefill":
                    
                    Int16 intRun = 0;//运行哪个画面
                    if (args.Length > 1) { intRun = Convert.ToInt16(args[1]); }
                    Application.Run(new ResinRefillDialog(intRun));
                    break;
            }
        }
    }
}
